home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0429.dms / q0429.adf / libray / libcommon / expr.h < prev    next >
C/C++ Source or Header  |  1991-08-08  |  2KB  |  55 lines

  1. /*
  2.  * expr.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Craig E. Kolb, Rod G. Bogart
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  * 
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: expr.h,v 4.0 91/07/17 14:30:47 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    expr.h,v $
  19.  * Revision 4.0  91/07/17  14:30:47  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef EXPR_H
  24. #define EXPR_H
  25.  
  26. #define FLOAT_EXPR        0
  27. #define BUILTIN_EXPR        1
  28.  
  29. typedef struct Expr {
  30.     short    type,            /* Expr type (float/builtin/time) */
  31.         timevary,        /* does the expr vary over time? */
  32.         symtab,            /* is the expr in the symtab? */
  33.         nparams;        /* # of params, if builtin */
  34.     Float    value,            /* float val/last eval if timeexpr */
  35.         timenow,        /* time of last evaluation */
  36.         (*function)();
  37.     struct Expr **params;        /* parameters, if a builtin */
  38. } Expr;
  39.  
  40. typedef struct ExprAssoc {
  41.     Float *lhs;            /* left-hand side */
  42.     Expr *expr;            /* right-hand side */
  43.     struct ExprAssoc *next;        /* Next in list */
  44. } ExprAssoc;
  45.     
  46. extern Float    ExprEval();
  47.  
  48. extern Expr    *ExprResolve1(), *ExprResolve2(), *ExprResolve3(),
  49.         *ExprResolve4(), *ExprResolve5(), *ExprFloatCreate();
  50. extern Expr    *TimeExpr, *FrameExpr, *ExprReuseFloatCreate();
  51.  
  52. extern ExprAssoc *AssocCreate();
  53.  
  54. #endif /* EXPR_H */
  55.